package com.active.service;

import com.active.bean.ActiveInfo;

import java.util.List;

public interface IActiveInfoService {

    /**
     * 查询活动节点。如果没有则返回null
     * @param activeId infoid
     * @return
     * @throws Exception
     */
    ActiveInfo getActiveInfoById(Integer activeId) throws Exception;

    List<ActiveInfo> getActiveInfosByListId(Integer activeListId) throws Exception;

    List<ActiveInfo> selectByUserAndActiveListId(Integer activeListId,int userId) throws Exception;

    int insertActiveInfo(ActiveInfo activeInfo) throws Exception;

    int updateActiveInfoById(ActiveInfo activeInfo) throws Exception;

    int deleteActiveInfoByActiveListId(Integer id) throws Exception;

    int updateActiveInfoToStopByListId(Integer id) throws Exception;

    int checkMissionFinished(Integer activeListId) throws Exception;

    int deleteByActiveListId(Integer activeListId) throws Exception;
}
